<template>
  <div class="edit">
    <div class="edit-title">
      <span class="title-1">学习中心</span> /
      <span class="title-1">我的专题培训</span> /
      <span class="title-2">理论考试</span>
    </div>
    <div class="edit-content">
      <div class="edit-content-left">
        <div class="edit-content-left-title">这是试卷名称</div>
        <div class="edit-content-left-content">
          <div class="edit-content-left-content-item1">
            <div>填空题</div>
            <div>2/20</div>
          </div>
          <div class="edit-content-left-content-item2">
            <div>2.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</div>
            <div class="edit-content-left-content-item2-2">
              <div>A.xxxxxxxxxxxxxxxxxxxxxxxxxxxxx</div>
              <div>B.xxxxxxxxxxxxxxxxxxxxxxxxxxxxx</div>
              <div>C.xxxxxxxxxxxxxxxxxxxxxxxxxxxxx</div>
              <div>D.xxxxxxxxxxxxxxxxxxxxxxxxxxxxx</div>
            </div>
          </div>
        </div>
      </div>
      <div class="edit-content-right">
        <div class="edit-content-right-title">
          <div>考试时间</div>
          <div>倒计时：20:36</div>
        </div>
        <div class="edit-content-right-content">
          <div class="edit-content-right-item">请选择</div>
          <div class="edit-content-right-item-1">
            <div class="edit-content-right-item-2">A</div>
            <div class="edit-content-right-item-2">B</div>
            <div class="edit-content-right-item-2">C</div>
            <div class="edit-content-right-item-2">D</div>
          </div>
        </div>
        <div class="edit-content-right-btn">
          <el-button>上一题</el-button>
          <el-button>下一题</el-button>
        </div>
      </div>
    </div>
  </div>
</template>
<script></script>
<style lang="scss" scoped>
.edit {
  box-sizing: border-box;
  height: 100%;
  position: relative;
  padding: 12px;
  .edit-title {
    font-weight: 500;
    font-size: 14px;
    color: #536387;
    line-height: 29px;
    text-align: left;
    font-style: normal;
    .title-1 {
      color: #536387;
      padding-right: 11px;
    }
    .title-2 {
      padding-left: 11px;
      color: #323232;
    }
  }
}
.edit-content {
  display: flex;
  margin-top: 24px;
  .edit-content-left {
    flex: 8;
    background: #fff;
    box-sizing: border-box;
    padding: 24px;
    height: calc(100vh - 200px);
    .edit-content-left-title {
      width: 100%;
      height: 50px;
      font-size: 24px;
      text-align: center;
      border-bottom: 1px solid #f0f2fa;
    }
  }
  .edit-content-right {
    flex: 4;
    margin-left: 20px;
    background: #fff;
    box-sizing: border-box;
    padding: 24px;
    position: relative;
    .edit-content-right-title {
      width: 100%;
      height: 50px;
      font-size: 18px;
      line-height: 50px;
      border-bottom: 1px solid #f0f2fa;
      display: flex;
      div:nth-child(1) {
        flex: 8;
      }
      div:nth-child(2) {
        flex: 4;
      }
    }
    .edit-content-right-content {
      .edit-content-right-item {
        margin-top: 12px;
        width: 100%;
        height: 50px;
        line-height: 50px;
        font-size: 16px;
        position: relative;
        padding-left: 16px;
        &:before {
          content: "";
          width: 4px;
          height: 20px;
          position: absolute;
          left: 0;
          top: 16px;
          background: #2265ee;
        }
      }
      .edit-content-right-item-1 {
        margin-top: 24px;
        display: flex;
        .edit-content-right-item-2 {
          width: 100px;
          height: 40px;
          line-height: 40px;
          text-align: center;
          border: 1px solid #2265ee;
          color: #2265ee;
          margin-right: 10px;
          border-radius: 4px;
          font-size: 14px;
        }
      }
    }
  }
}
.edit-content-right-btn {
  width: 90%;
  position: absolute;
  bottom: 30px;
  display: flex;
  .el-button {
    width: 80%;
    height: 40px;
  }
  .el-button:nth-child(2) {
    background: #2265ee;
    color: #fff;
    border: 1px solid #2265ee;
    &:active {
      opacity: 0.8;
    }
  }
}
.edit-content-left-content {
  width: 100%;
}
.edit-content-left-content-item1 {
  display: flex;
  margin-top: 24px;
  font-size: 24px;
  width: 100%;
  div:nth-child(1) {
    flex: 8;
    text-align: left;
  }
  div:nth-child(2) {
    flex: 4;
    text-align: right;
  }
}
.edit-content-left-content-item2 {
  margin-top: 24px;
  font-size: 18px;
  img {
    width: 260px;
    height: 140px;
  }
}
.edit-content-left-content-item2-2 {
  padding-left: 32px;
  div {
    margin-top: 32px;
  }
}
.edit-content-left-content-item2-1 {
  display: flex;

  width: 100%;

  height: 100px;

  border-radius: 4px;

  margin-top: 20px;

  justify-content: space-around;

  align-items: center;

  flex-wrap: wrap; //设置换行

  gap: 10px; //每个元素间隔10px
  div {
    border: 1px solid #f1f4fb;
    display: flex;

    border-radius: 5px;

    justify-content: space-around;

    align-items: center;

    width: calc(50% - 20px); //设置所占宽度50%，再减去20px

    padding: 10px;

    box-sizing: border-box; //设置后宽高不变，不会因为间隔而变小
  }
}
</style>
